package com.bzoa.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bzoa.api.dto.UserListPageDTO;
import com.bzoa.api.entity.User;
import com.springboot.common.entity.ResponseResult;

/**
 * @Author lands
 * @Date 2023/3/6 10:32
 * @Description  用户业务接口
 */
public interface UserService extends IService<User> {
    /**
     * 根据ID获取用户
     * @param id
     * @return
     */
    User getUser(String id);
    /**
     * 用户登录
     * @param user
     * @param pwd
     * @return
     */
    ResponseResult login(String user, String pwd);

    /**
     * 用户注册
     * @param username
     * @param pwd
     * @return
     */
    ResponseResult regist(String username, String pwd);

    /**
     *
     * @param page
     * @param nickname
     * @param mobile
     * @return
     */
    ResponseResult getUserListPage(int page, int pageSize, String mobile, String nickname);
}
